package com.momo.common.res.sysSetting;

import com.google.common.collect.Lists;
import com.momo.mapper.dataobject.DeptDO;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.springframework.beans.BeanUtils;

import java.util.List;

@Getter
@Setter
@ToString
public class DeptLevelRes extends DeptDO {

    private List<DeptLevelRes> deptList = Lists.newArrayList();

    public static DeptLevelRes adapt(DeptDO dept) {
        DeptLevelRes dto = new DeptLevelRes();
        BeanUtils.copyProperties(dept, dto);
        return dto;
    }
}
